﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.ExtentionMethods;

namespace Happy.Bootstrap
{
    /// <summary>
    /// 扩展<see cref="IBootstrapPlugin"/>。
    /// </summary>
    public static class IBootstrapPluginExtentions
    {
        /// <summary>
        /// 配置完成，返回<see cref="IBootstrapService"/>实例。
        /// </summary>
        public static IBootstrapService Done(this IBootstrapPlugin that)
        {
            that.MustNotNull("that");

            return BootstrapService.Current;
        }
    }
}
